<template>
 <p>
   <a-button @click="doReq">正常请求</a-button>
  <a-button @click="doDuble">连续两次请求</a-button>
 </p>
</template>

<script setup>
import {testApi} from '@/api/test'
const doReq = async () => {
  const rs = await testApi({ size: 'full' })
  // const rs = await testApi({ size: 'full' }, {allowDuplicate: true})
  console.log('🚀------ ~ index.vue:12 ~ doReq ~ rs:', rs)
}

const doDuble = async () => {
  doReq()
  doReq()
}
</script>

<style lang="scss" scoped>

</style>